import request from '@/utils/request'

export const getOrderList = () => request({
  url: '/orderstatistics/list',
  method: 'GET'
})

// 订单详情
export const getOrderDetail = (id) => request({
  url: `/orderstatistics/list/${id}`
})

// 删除订单
export const delOrder = (id) => request({
  url: `/orderstatistics/delete/${id}`,
  method: 'DELETE'

})
// 订单统计
export const getOrderCount = () => request({
    url: '/ordersReceived/list',
    method: 'get'
  })

